#include "TestEventListParams.h"

void TestEventListParams::eventListParams()
{
    EventListParams params20110707(QDate(2011, 7, 7));
    QCOMPARE(params20110707.year(),       QString("2011"));
    QCOMPARE(params20110707.currentYear(), QDate::currentDate().toString("yyyy"));
    QCOMPARE(params20110707.month(),      QString("07"));
    QCOMPARE(params20110707.week(),       QString("2"));
    QCOMPARE(params20110707.fullWeek(),   QString("2"));
    QCOMPARE(params20110707.dayOfWeek(),  QString("4"));
    QCOMPARE(params20110707.dayOfMonth(), QString("07"));
    QCOMPARE(params20110707.dayOfYear(),  QString("188"));
    QCOMPARE(params20110707.dayFromOrthEaster(),  QString("074"));
    QCOMPARE(params20110707.dayFromCathEaster(),  QString("074"));
}
